{{- if .Values.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
  name: {{ .Values.serviceAccount.name }}
  {{- if .Values.serviceAccount.annotations }}
  annotations: {{ .Values.serviceAccount.annotations | nindent 4 }}
  {{- end }}
{{- end }}